import { createApp } from 'vue'
import App from './App.vue'
import router from '@/router'
import store from '@/store'
import '@/router/permission'
import { loadSvg } from '@/icons'
import directive from './directive'
import Print from 'vue3-print-nb'

import './styles/tailwind.css'
import ElementPlus from 'element-plus'
import "element-plus/dist/index.css"
import "element-plus/theme-chalk/dark/css-vars.css"
import './styles/index.scss'
import vue3TreeOrg from 'vue3-tree-org';
import "vue3-tree-org/lib/vue3-tree-org.css";
//国际化vue-i18n语言包
import i18n from './locales/index'  // 引入
const app = createApp(App)

app.use(router)
  .use(store)
  .use(ElementPlus)
  .use(loadSvg)
  .use(directive)
  .use(Print)
  .use(i18n)
  .use(vue3TreeOrg)
  .mount('#app')

//禁止el-dialog遮罩层关闭
app._context.components.ElDialog["props"].closeOnClickModal.default = false
